package com.cloud.pikachu.storage.api.feign.hihystric;

import com.cloud.pikachu.storage.api.feign.ImageUploadClient;
import com.cloud.pikachu.storage.api.vo.ExecuteResult;
import com.cloud.pikachu.storage.api.vo.UploadImageVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public class ImageUploadClientHiHystric implements ImageUploadClient {
    private static final Logger LOGGER = LoggerFactory.getLogger(ImageUploadClientHiHystric.class);
    @Override
    public ExecuteResult<UploadImageVO> uploadVersion(MultipartFile file,int saveType,long saveDuration,List<String> sliceList,int zipSize,String code){
        LOGGER.error("Error 接口被熔断 : {}");
        ExecuteResult executeResult = new ExecuteResult(999,"接口调用被熔断");
        return executeResult;
    }
}
